package nl.mvvenrooij.recommended.twitter.data;

public class Status {
	private String text;
	private Entities entities;

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public Entities getEntities() {
		return entities;
	}

	public void setEntities(Entities entities) {
		this.entities = entities;
	}

    @Override
    public String toString() {
        return "Status{" +
                ", text='" + text + '\'' +
                ", entities=" + entities +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Status status = (Status) o;

        return !(entities != null ? !entities.equals(status.entities) : status.entities != null) && !(text != null ? !text.equals(status.text) : status.text != null);

    }

    @Override
    public int hashCode() {
        int result = text != null ? text.hashCode() : 0;
        result = 31 * result + (entities != null ? entities.hashCode() : 0);
        return result;
    }
}
